﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Event_Delagete_Demo
{
    /// <summary>
    /// 事件处理程序
    /// </summary>
    public class Test_CatCall
    {
        public static void Main()
        {
            CatDelagete catdelagete = new CatDelagete();
            //事件触发者
            CatDelageteManager cm = new CatDelageteManager();

            #region 事件绑定1
            //catdelagete.myCatCall += cm.MouseEscape;
            //catdelagete.CatCall();
            //Console.WriteLine();
            //catdelagete.myCatCall += cm.MasterAwaken;
            //catdelagete.CatCall();
            //Console.WriteLine();
            #endregion

            #region 事件绑定2
            catdelagete.myCatCall += cm.MouseEscape;
            catdelagete.myCatCall += cm.MasterAwaken;
            catdelagete.CatCall();
            Console.WriteLine(); 
            #endregion
            
            Console.ReadKey();

        }
    }
}
